package com.javasm.dao;

import com.javasm.entity.RoomCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 陪玩直播大厅分类(PlayRoomCategory)表数据库访问层
 *
 * @author makejava
 * @since 2024-08-23 10:17:41
 */
public interface RoomCategoryDao {


    List<RoomCategory> listCategoryLevel(Integer parentId);
    List<RoomCategory> listAllCategory(@Param("inputCategory") RoomCategory inputCategory, @Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize);

    Integer countCategory(@Param("inputCategory") RoomCategory inputCategory);

    Integer addCategory(RoomCategory inputCategory);

    Integer deleteCategoryById(Integer categoryId);

    Integer editCategory(RoomCategory inputCategory);

    RoomCategory getCategoryById(Integer categoryId);






}

